package com.jyx.framework.domain.course;

import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Leef
 * @Time 2020/2/20
 */
@Data
@Entity
@ToString
@Table(name = "teachplan")
@GenericGenerator(name = "jpa-uuid",strategy = "uuid")
public class Teachplan implements Serializable {
    /**
     * `id` varchar(32) NOT NULL,
     *   `pname` varchar(64) NOT NULL,
     *   `parentid` varchar(32) NOT NULL,
     *   `grade` char(1) NOT NULL COMMENT '层级，分为1、2、3级',
     *   `ptype` char(1) DEFAULT NULL COMMENT '课程类型:1视频、2文档',
     *   `description` varchar(500) DEFAULT NULL COMMENT '章节及课程时介绍',
     *   `timelength` double(5,2) DEFAULT NULL COMMENT '时长，单位分钟',
     *   `courseid` varchar(32) DEFAULT NULL COMMENT '课程id',
     *   `orderby` varchar(32) DEFAULT NULL COMMENT '排序字段',
     *   `status` char(1) NOT NULL COMMENT '状态：未发布、已发布',
     *   `trylearn` char(1) DEFAULT NULL COMMENT '是否试学',
     */
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
    private String id;

    private String pname;
    private String parentid;
    private String grade;
    private String ptype;
    private String description;
    private Double timelength;
    private String courseid;
    private String orderby;
    private String status;
    private String trylearn;


}
